package com.edusci.backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.edusci.backend.pojo.Teacher;
import com.edusci.backend.mapper.TeacherMapper;
import com.edusci.backend.service.ITeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lungcen
 * @since 2024-04-24
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements ITeacherService {

    @Override
    public List<Teacher> getAll() {
        QueryWrapper<Teacher> wrapper = new QueryWrapper<>();
        return baseMapper.selectList(wrapper);
    }
}
